package edu.wpi.first.wpilibj.swarm;

import edu.wpi.first.wpilibj.Utility;

public class Vector {
	private double x;
	private double y;
	
	Vector () {
		x = 0.0;
		y = 0.0;
	}
	
	long dbgtime = 0;

	Vector(double xpos, double ypos) {
		x = xpos;
		y = ypos;
	}
	
	void debug() {
		if (Utility.getFPGATime() > dbgtime) {
			System.out.println("\n\n");
			System.out.println(x);
			System.out.println(y);
			dbgtime = Utility.getFPGATime() + 100000;
		}
	}

	void setX(double x) {
		this.x = x;
	}

	void setY(double y) {
		this.y = y;
	}

	double getX() {
		return x;
	}

	double getY() {
		return y;
	}
	
	void set(Vector in) {
		x = in.getX();
		y = in.getY();
	}
}
